/*****************************************
CalPress Typography defaults
*****************************************/

body {
   font-size: 12px;
   line-height: 18px;
}

a{
    color: #000;
}

p, ul, ol { 
    margin-bottom: 18px; 
}

h1{
    font-size: 36px; 
    line-height: 42px;
    margin-bottom: 18px;
}


h2 { 
    font-size: 24px; 
    line-height: 36px;
    margin-bottom: 18px; 
}

h3 { 
    font-size: 18px; 
    line-height: 18px; 
    margin-bottom: 18px;
}

h4 { 
    font-size: 12px; 
    line-height: 18px; 
    margin-bottom: 6px;
}

dl dt{
    margin-top: 5px;
}

dl dt:first-child{
    margin-top: 0px;
}

blockquote, q {
	quotes: "" "";
}

/*blockquote:before, blockquote:after,
q:before, q:after {
	content: '"';
}*/

q:before, q:after {
	content: '"';
}

/* When a sub head follows a headline (H1 > H2), eleminate the margin between */
h1 + h2, h2 + h3 {
    margin-top: -18px;
}

/* In a nested list, eliminate bottom UL margin */
ul ul{
	margin-bottom: 0;
}

ul.xoxo > li{
    list-style-type: none;
    margin-left: 0;
}

ul.xoxo.blogroll > li{
   list-style-type: square;
   margin-left: 30px;
}

ul.xoxo ul {
	margin-bottom: 18px;
}

/* Sidebar */
#sidebar #searchform{
    margin-bottom: 18px;
}

/* Basic block rules */

.left, .alignleft { 
    float: left; 
    margin: 0 10px 0 0; 
}

.right, .alignright { 
    float: right; 
    margin: 0 0 0 10px; 
}

.pullquote{
    padding: 24px;
    font-size: 18px;
    line-height:18px;
    max-width: 172px; /* (l padding + r padding) + max-width = 3 col span on a 12 col 960 grid */
}

.pullquote p, .pullquote ul, .pullquote ol, .pullquote h1, .pullquote h2{
    margin: 0;
    padding: 0;
}

.entry-title{
    margin-bottom: 6px; /* default headers have 18px of bottom margin. we need less b/c of bylines and such */
}

.entry-video-downloads, .entry-audio-downloads{
    float: right;
    margin: 0 0 0 10px; 
}

/* Give bottom margin to all posts in a series */
.post{
    margin-bottom: 25px;
}

body.single .entry-content p{
    font-size: 14px;
    line-height: 22px;
}

.clearleft{
    clear: left;
}
.clearright{
    clear: right;
}

/* treat pictures as block-level elements */
img.pic{
	display: block !important;
}

/* WP image styles */
img.alignright {float:right; margin:0 0 10px 10px}
img.alignleft {float:left; margin:0 10px 10px 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
a img.alignright {float:right; margin:0 0 10px 10px}
a img.alignleft {float:left; margin:0 10px 10px 0}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}

/*****************************************
CalPress Content Section-specific rules
*****************************************/
#show-mobile{
    background-color: #000;
    color: #FFF;
    font-size: 12px;
    margin: 0;
    padding: 2px 0;
    text-align: center;
    font-weight: bold;
}

#show-mobile a{
    color: #FFF;
}

#wrapper{
    margin-top: 20px;
    margin-bottom: 20px;
}

#nav-above{
    display: none; /* Hide the auto-generated previous/next link at the top of posts */
}

#pre-title, #post-title{/* Dyanmic spots above and below header title. CalPress can populate via functions file */
    display: none;
}

#header h1{
    margin-bottom: 0px;
}

#menu li{
    display: inline;
    margin: 10px 20px 10px 0;
}

#entry-sidebar{
    float:right;
	clear: right;
    margin-left:10px;
    padding:5px;
    margin-left: 10px;
    width:290px; /* 4 col on a 12col 960 grid */
}

#footer{
	text-align: center;
	border-top: 2px solid #000;
	margin-top: 5px;
	margin-bottom: 5px;
	padding: 10px 0;
}

/* Spacing between comment "paragraphs" */
li.comment p br{
    margin-bottom: 10px;
}

/*************************
 Category Page
 body.page-template-category-page-php or body.category
*************************/
body.category .post, body.page-template-category-page-php .post{
    padding-top: 15px;
    margin-bottom: 15px;
    width: 380px;
}

body.category .p1.post, body.page-template-category-page-php .p1.post{
    padding-top: 0;
    border-top: 0;
}

body.category .entry-image, body.page-template-category-page-php .entry-image{
    float: left;
    width: 140px;
    margin-right: 10px;
    margin-bottom: 10px;
}

body.category .p1 .entry-image, body.page-template-category-page-php .p1 .entry-image{
    float: none;
    width: 380px;
    margin-right: 0;
}

body.category .entry-date, body.page-template-category-page-php .entry-date{
   margin-bottom: 5px;
}

/*************************
 Package Page
 #content.package
*************************/
#content.package .package-tease{
    font-size: 14px;
}

#content.package h1{
    margin-bottom: 6px;
}

#content.package h2{
    margin-bottom: 2px;
}

#content.package .rail-element{
   padding-top: 10px;
}

#content.package .rail-element:first-child{
   padding-top: 0;
}

#content.package .rail-element h3{
    margin-bottom: 4px;
}

/*************************
 Login Page
 body.login
*************************/
body.login h1 a {
	background: none;
	display:inline;
	padding-bottom:inherit;
	text-indent:0;
	width: 100%;
}

body.login h1{
	text-align: center;
}

body.login a{
	color: #000;
}

body.login #nav a {
	color:#000 !important;
}

body.login #login {
	margin:7em auto;
	width:400px;
}

body.login form  {
	-moz-box-shadow: none;
	-moz-border-radius: 0;
	background:none repeat scroll 0 0 #FFFFFF;
	border:0;
	font-weight:normal;
	margin: 0 0 18px 0;
	padding:16px 16px 40px;
}

body.login #nav {
	text-shadow: none;
	margin: 0;
	padding: 0;
}

body.login .button-primary{
	background: none repeat scroll 0 0 #000;
	border: 0;
	color:#FFFFFF;
	font-weight:bold;
	text-shadow:0;
	-moz-border-radius: 0;
}

/*****************************************
960 Background Grid Guide
-   CalPress can add grid to the body class
*****************************************/
body.grid #wrapper.container_12{
    background-image: url(img/12_col.gif);
}

body.grid #wrapper.container_16{
    background-image: url(img/16_col.gif);
}

/*****************************************
CalPress Internal Page Columns
-   rails align internally with external 
    divs on 12 & 16 col 960 grids. 12 is 
    assumed. 16 is specifed with .container_16
*****************************************/
/* All rails have an internal 5 pixel padding */
.rail-1col-right, .rail-1col-left, .rail-2col-right, .rail-2col-left, .rail-3col-right, .rail-3col-left, .rail-4col-right, .rail-4col-left, .rail-5col-right, .rail-5col-left, .rail-6col-right, .rail-6col-left{
    padding: 5px;
    margin-bottom: 10px;
}

/* the last elment in a rail need not have any inheirent bottom padding or margins (CSS 3 selector)
.rail-1col-right :last-child, .rail-1col-left :last-child, .rail-2col-right :last-child, .rail-2col-left :last-child, .rail-3col-right :last-child, .rail-3col-left :last-child, .rail-4col-right :last-child, .rail-4col-left :last-child, .rail-5col-right :last-child, .rail-5col-left :last-child, .rail-6col-right :last-child, .rail-6col-left :last-child{
    margin-bottom: 0px;
    padding-bottom: 0px;
}*/

/* Float rails and give them the appropriate l/r margins*/
.rail-1col-right, .rail-2col-right, .rail-3col-right, .rail-4col-right, .rail-5col-right, .rail-6col-right, .rail-7col-right, .rail-8col-right{
    margin-left: 10px;
    float: right;
	clear: right;
}
.rail-1col-left, .rail-2col-left, .rail-3col-left, .rail-4col-left, .rail-5col-left, .rail-6col-left, .rail-7col-left, .rail-8col-left{
    margin-right: 10px;
    float: left;
	clear: left;
}

/* To account for internal l/r padding and margin, all rails 
are 10px narrower than their 960 grid parents */

/* 12 cols */
.rail-1col-right, .rail-1col-left{
    width: 50px;
}

.rail-2col-right, .rail-2col-left{
    width: 130px;
}

.rail-3col-right, .rail-3col-left{
    width: 210px;
}

.rail-4col-right, .rail-4col-left{
    width: 290px;
}

.rail-5col-right, .rail-5col-left{
    width: 370px;
}

.rail-6col-right, .rail-6col-left{
    width: 450px;
}

/* 16 cols */
.container_16 .rail-1col-right, .container_16 .rail-1col-left{
    width: 30px;
} 
.container_16 .rail-2col-right, .container_16 .rail-2col-left{
    width: 90px;
}
.container_16 .rail-3col-right, .container_16 .rail-3col-left{
    width: 150px;
}
.container_16 .rail-4col-right, .container_16 .rail-4col-left{
    width: 210px;
}
.container_16 .rail-5col-right, .container_16 .rail-5col-left{
    width: 270px;
}
.container_16 .rail-6col-right, .container_16 .rail-6col-left{
    width: 330px;
}
.container_16 .rail-7col-right, .container_16 .rail-7col-left{
    width: 390px;
}
.container_16 .rail-8col-right, .container_16 .rail-8col-left{
    width: 450px;
}


/* inner-rail spacing. l/r padding in parent. we need b, t is inherent in first elements parent top padding. */
.rail-element, .sidebar-element{
    margin-bottom: 15px;
}
